﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using IHISCETeim.BLL;
using IHISCETeim.Library;
using IHISCETeim.Model;
using System.Data;
using System.Text;
namespace IHISCETeim.Web.AgentSys.SvrMgr
{
    public partial class UAgentMacStockDetailNGList : PageBase
    {
        protected override Permission[] PowerKey
        {
            get
            {
                return new Permission[] { Permission.修改, Permission.新增 };
            }
        }
        protected override string DWZRef
        {
            get
            {
                return "UAgentMacList";
            }

        }

        protected void Page_Load(object sender, EventArgs e)
        {
            BindDate();
        }

        protected int UASID
        {
            get
            {
                return GetRequestValue<int>("UASID", 0);
            }
        }
        protected UAgentMacStockInfo _obj = null;
        protected UAgentMacStockInfo obj
        {
            get
            {
                if (_obj == null)
                {
                    _obj = UAgentMacStockController.GetById(UASID);
                }
                return _obj;
            }
        }

        protected void BindDate()
        {

            this.rpMenu.DataSource = UAgentMacStockController.UAgentMacStockDetail_GetALLByUASID(UASID);
            this.rpMenu.DataBind();
        }
    }
}